<?php
/**
 * Author:xsc
 * Time:2023/9/20 14:32
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class GoodsParams extends BaseParam
{

    public $mid;

    public $mobile;

    public $goods_id;

    public function rules()
    {
        return [
            'mid'      => 'string',
            'mobile'   => 'required|string',
            'goods_id' => 'required|int',
        ];
    }

    public function message()
    {
        return [
            //"mid.required"      => "商户号不能为空",
            "mobile.required"   => "手机号不能为空",
            "goods_id.required" => "商品id不能为空",
        ];
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getMobile()
    {
        return $this->mobile;
    }

    public function getGoodsId()
    {
        return $this->goods_id;
    }

}
